/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.apache.bid.common.vo  
 */
package com.apache.bid.common.vo;

import com.apache.bid.entity.BidItem;
import com.apache.bid.entity.BidItemPrice;
import com.apache.bid.entity.BidPub;
import com.apache.tools.StrUtil;

/**
 * description:  标的缓存模型
 * @author Hou Dayu 创建时间：2016-3-18  
 * 
 */
@SuppressWarnings("serial")
public class BidItemCacheVo extends BidItem {

	private BidPub pub;
	private BidItemPrice bidItemPrice;
	///以下为扩展属性
	private String bjServer;
	private String bjPort;
	private String isBroadCast;
	private String ruleCtrl;
	private String bailCtrl;//来自session表

	public BidPub getPub() {
		return pub;
	}

	public BidItemPrice getBidItemPrice() {
		return bidItemPrice;
	}

	public void setBidItemPrice(BidItemPrice bidItemPrice) {
		this.bidItemPrice = bidItemPrice;
	}

	public void setPub(BidPub pub) {
		this.pub = pub;
		if (null != pub) {
			this.bjServer = pub.getBjServer();
			this.bjPort = pub.getBjPort();
			this.isBroadCast = pub.getIsBroadCast();
			this.ruleCtrl = pub.getRuleCtrl();
		}
	}

	public void addItemInfo(BidItem item) {
		this.itemId = item.getItemId();
		this.sessionId = StrUtil.isNull(item.getSessionId()) ? sessionId : item.getSessionId();
		this.sessionType = StrUtil.isNull(item.getSessionType()) ? sessionType : item.getSessionType();
		this.sessionName = StrUtil.isNull(item.getSessionName()) ? sessionName : item.getSessionName();
		this.groupId = StrUtil.isNull(item.getGroupId()) ? groupId : item.getGroupId();
		this.groupName = StrUtil.isNull(item.getGroupName()) ? groupName : item.getGroupName();
		this.bidMode = StrUtil.isNull(item.getBidMode()) ? bidMode : item.getBidMode();
		this.ifBidDyn = StrUtil.isNull(item.getIfBidDyn()) ? ifBidDyn : item.getIfBidDyn();
		this.itemNo = StrUtil.isNull(item.getItemNo()) ? itemNo : item.getItemNo();
		this.itemName = StrUtil.isNull(item.getItemName()) ? itemName : item.getItemName();
		this.itemType = StrUtil.isNull(item.getItemType()) ? itemType : item.getItemType();
		this.itemTypeName = StrUtil.isNull(item.getItemTypeName()) ? itemTypeName : item.getItemTypeName();
		this.itemSubname = StrUtil.isNull(item.getItemSubname()) ? itemSubname : item.getItemSubname();
		this.itemStatus = StrUtil.isNull(item.getItemStatus()) ? itemStatus : item.getItemStatus();
		this.itemNum = StrUtil.isNull(item.getItemNum()) ? itemNum : item.getItemNum();
		this.itemNumDesc = StrUtil.isNull(item.getItemNumDesc()) ? itemNumDesc : item.getItemNumDesc();
		this.itemUnitName = StrUtil.isNull(item.getItemUnitName()) ? itemUnitName : item.getItemUnitName();
		this.incrementGroup = StrUtil.isNull(item.getIncrementGroup()) ? incrementGroup : item.getIncrementGroup();
		this.incrementValue = StrUtil.isNull(item.getIncrementValue()) ? incrementValue : item.getIncrementValue();
		this.firstValuePre = StrUtil.isNull(item.getFirstValuePre()) ? firstValuePre : item.getFirstValuePre();
		this.oncevalue = StrUtil.isNull(item.getOncevalue()) ? oncevalue : item.getOncevalue();
		this.holdvalue = StrUtil.isNull(item.getHoldvalue()) ? holdvalue : item.getHoldvalue();
		this.holdNoticeTime = StrUtil.isNull(item.getHoldNoticeTime()) ? holdNoticeTime : item.getHoldNoticeTime();
		this.decimalCount = StrUtil.isNull(item.getDecimalCount()) ? decimalCount : item.getDecimalCount();
		this.currency = StrUtil.isNull(item.getCurrency()) ? currency : item.getCurrency();
		this.priceUnit = StrUtil.isNull(item.getPriceUnit()) ? priceUnit : item.getPriceUnit();
		this.allowUpdateTimes = StrUtil.isNull(item.getAllowUpdateTimes()) ? allowUpdateTimes : item
				.getAllowUpdateTimes();
		this.bidWay = StrUtil.isNull(item.getBidWay()) ? bidWay : item.getBidWay();
		this.priceFlag = StrUtil.isNull(item.getPriceFlag()) ? priceFlag : item.getPriceFlag();
		this.flagTime = StrUtil.isNull(item.getFlagTime()) ? flagTime : item.getFlagTime();
		this.bailPrice = StrUtil.isNull(item.getBailPrice()) ? bailPrice : item.getBailPrice();
		this.auditTime = StrUtil.isNull(item.getAuditTime()) ? auditTime : item.getAuditTime();
		this.openTimePre = StrUtil.isNull(item.getOpenTimePre()) ? openTimePre : item.getOpenTimePre();
		this.firstBidTimePre = StrUtil.isNull(item.getFirstBidTimePre()) ? firstBidTimePre : item.getFirstBidTimePre();
		this.closeTimePre = StrUtil.isNull(item.getCloseTimePre()) ? closeTimePre : item.getCloseTimePre();
		this.limitTime = StrUtil.isNull(item.getLimitTime()) ? limitTime : item.getLimitTime();
		this.delayControl = StrUtil.isNull(item.getDelayControl()) ? delayControl : item.getDelayControl();
		this.delayUnit = StrUtil.isNull(item.getDelayUnit()) ? delayUnit : item.getDelayUnit();
		this.delayPeriod = StrUtil.isNull(item.getDelayPeriod()) ? delayPeriod : item.getDelayPeriod();
		this.delayDeadTime = StrUtil.isNull(item.getDelayDeadTime()) ? delayDeadTime : item.getDelayDeadTime();
		this.delayPeriodMax = StrUtil.isNull(item.getDelayPeriodMax()) ? delayPeriodMax : item.getDelayPeriodMax();
		this.ifFee = StrUtil.isNull(item.getIfFee()) ? ifFee : item.getIfFee();
		this.allowFirstValue = StrUtil.isNull(item.getAllowFirstValue()) ? allowFirstValue : item.getAllowFirstValue();
		this.allowRepeat = StrUtil.isNull(item.getAllowRepeat()) ? allowRepeat : item.getAllowRepeat();
		this.allowEndPrio = StrUtil.isNull(item.getAllowEndPrio()) ? allowEndPrio : item.getAllowEndPrio();
		this.allowHallPrio = StrUtil.isNull(item.getAllowHallPrio()) ? allowHallPrio : item.getAllowHallPrio();
		this.allowPrioTime = StrUtil.isNull(item.getAllowPrioTime()) ? allowPrioTime : item.getAllowPrioTime();
		this.allowAdd = StrUtil.isNull(item.getAllowAdd()) ? allowAdd : item.getAllowAdd();
		this.allowAddTime = StrUtil.isNull(item.getAllowAddTime()) ? allowAddTime : item.getAllowAddTime();
		this.prioControl = StrUtil.isNull(item.getPrioControl()) ? prioControl : item.getPrioControl();
		this.endPrioDays = StrUtil.isNull(item.getEndPrioDays()) ? endPrioDays : item.getEndPrioDays();
		this.bidInterval = StrUtil.isNull(item.getBidInterval()) ? bidInterval : item.getBidInterval();
		this.bidIntervalLimit = StrUtil.isNull(item.getBidIntervalLimit()) ? bidIntervalLimit : item
				.getBidIntervalLimit();
		this.isPreview = StrUtil.isNull(item.getIsPreview()) ? isPreview : item.getIsPreview();
		this.itemSource = StrUtil.isNull(item.getItemSource()) ? itemSource : item.getItemSource();
		this.itemBrand = StrUtil.isNull(item.getItemBrand()) ? itemBrand : item.getItemBrand();
		this.itemArea = StrUtil.isNull(item.getItemArea()) ? itemArea : item.getItemArea();
		this.packId = StrUtil.isNull(item.getPackId()) ? packId : item.getPackId();
		this.proId = StrUtil.isNull(item.getProId()) ? proId : item.getProId();
		this.sysId = StrUtil.isNull(item.getSysId()) ? sysId : item.getSysId();
		this.picUrl = StrUtil.isNull(item.getPicUrl()) ? picUrl : item.getPicUrl();
		this.picUrlSmall = StrUtil.isNull(item.getPicUrlSmall()) ? picUrlSmall : item.getPicUrlSmall();
		this.orgEname = StrUtil.isNull(item.getOrgEname()) ? orgEname : item.getOrgEname();
		this.orgCname = StrUtil.isNull(item.getOrgCname()) ? orgCname : item.getOrgCname();
		this.fallDecrement = StrUtil.isNull(item.getFallDecrement()) ? fallDecrement : item.getFallDecrement();
		this.fallLimitTime = StrUtil.isNull(item.getFallLimitTime()) ? fallLimitTime : item.getFallLimitTime();
		this.fallLowerstPrice = StrUtil.isNull(item.getFallLowerstPrice()) ? fallLowerstPrice : item
				.getFallLowerstPrice();
		this.modifyTime = StrUtil.isNull(item.getModifyTime()) ? modifyTime : item.getModifyTime();
		this.netBidKind = StrUtil.isNull(item.getNetBidKind()) ? netBidKind : item.getNetBidKind();
		this.orderNumber = StrUtil.isNull(item.getOrderNumber()) ? orderNumber : item.getOrderNumber();
		this.spare1 = StrUtil.isNull(item.getSpare1()) ? spare1 : item.getSpare1();
		this.spare2 = StrUtil.isNull(item.getSpare2()) ? spare2 : item.getSpare2();
		this.spare3 = StrUtil.isNull(item.getSpare3()) ? spare3 : item.getSpare3();
		this.spare4 = StrUtil.isNull(item.getSpare4()) ? spare4 : item.getSpare4();
		this.spare5 = StrUtil.isNull(item.getSpare5()) ? spare5 : item.getSpare5();
		this.ifRight = StrUtil.isNull(item.getIfRight()) ? ifRight : item.getIfRight();
		this.vFlag = StrUtil.isNull(item.getvFlag()) ? vFlag : item.getvFlag();
		this.direction = StrUtil.isNull(item.getDirection()) ? direction : item.getDirection();
	}

	public String getBjServer() {
		return bjServer;
	}

	public void setBjServer(String bjServer) {
		this.bjServer = bjServer;
	}

	public String getBjPort() {
		return bjPort;
	}

	public void setBjPort(String bjPort) {
		this.bjPort = bjPort;
	}

	public String getIsBroadCast() {
		return isBroadCast;
	}

	public void setIsBroadCast(String isBroadCast) {
		this.isBroadCast = isBroadCast;
	}

	public String getRuleCtrl() {
		return ruleCtrl;
	}

	public void setRuleCtrl(String ruleCtrl) {
		this.ruleCtrl = ruleCtrl;
	}

	public String getBailCtrl() {
		return bailCtrl;
	}

	public void setBailCtrl(String bailCtrl) {
		this.bailCtrl = bailCtrl;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getSessionType() {
		return sessionType;
	}

	public void setSessionType(String sessionType) {
		this.sessionType = sessionType;
	}

	public String getSessionName() {
		return sessionName;
	}

	public void setSessionName(String sessionName) {
		this.sessionName = sessionName;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getBidMode() {
		return bidMode;
	}

	public void setBidMode(String bidMode) {
		this.bidMode = bidMode;
	}

	public String getIfBidDyn() {
		return ifBidDyn;
	}

	public void setIfBidDyn(String ifBidDyn) {
		this.ifBidDyn = ifBidDyn;
	}

	public String getItemNo() {
		return itemNo;
	}

	public void setItemNo(String itemNo) {
		this.itemNo = itemNo;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public String getItemTypeName() {
		return itemTypeName;
	}

	public void setItemTypeName(String itemTypeName) {
		this.itemTypeName = itemTypeName;
	}

	public String getItemSubname() {
		return itemSubname;
	}

	public void setItemSubname(String itemSubname) {
		this.itemSubname = itemSubname;
	}

	public String getItemStatus() {
		return itemStatus;
	}

	public void setItemStatus(String itemStatus) {
		this.itemStatus = itemStatus;
	}

	public String getItemNum() {
		return itemNum;
	}

	public void setItemNum(String itemNum) {
		this.itemNum = itemNum;
	}

	public String getItemNumDesc() {
		return itemNumDesc;
	}

	public void setItemNumDesc(String itemNumDesc) {
		this.itemNumDesc = itemNumDesc;
	}

	public String getItemUnitName() {
		return itemUnitName;
	}

	public void setItemUnitName(String itemUnitName) {
		this.itemUnitName = itemUnitName;
	}

	public String getIncrementGroup() {
		return incrementGroup;
	}

	public void setIncrementGroup(String incrementGroup) {
		this.incrementGroup = incrementGroup;
	}

	public String getIncrementValue() {
		return incrementValue;
	}

	public void setIncrementValue(String incrementValue) {
		this.incrementValue = incrementValue;
	}

	public String getFirstValuePre() {
		return firstValuePre;
	}

	public void setFirstValuePre(String firstValuePre) {
		this.firstValuePre = firstValuePre;
	}

	public String getOncevalue() {
		return oncevalue;
	}

	public void setOncevalue(String oncevalue) {
		this.oncevalue = oncevalue;
	}

	public String getHoldvalue() {
		return holdvalue;
	}

	public void setHoldvalue(String holdvalue) {
		this.holdvalue = holdvalue;
	}

	public String getHoldNoticeTime() {
		return holdNoticeTime;
	}

	public void setHoldNoticeTime(String holdNoticeTime) {
		this.holdNoticeTime = holdNoticeTime;
	}

	public String getDecimalCount() {
		return decimalCount;
	}

	public void setDecimalCount(String decimalCount) {
		this.decimalCount = decimalCount;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getPriceUnit() {
		return priceUnit;
	}

	public void setPriceUnit(String priceUnit) {
		this.priceUnit = priceUnit;
	}

	public String getAllowUpdateTimes() {
		return allowUpdateTimes;
	}

	public void setAllowUpdateTimes(String allowUpdateTimes) {
		this.allowUpdateTimes = allowUpdateTimes;
	}

	public String getBidWay() {
		return bidWay;
	}

	public void setBidWay(String bidWay) {
		this.bidWay = bidWay;
	}

	public String getPriceFlag() {
		return priceFlag;
	}

	public void setPriceFlag(String priceFlag) {
		this.priceFlag = priceFlag;
	}

	public String getFlagTime() {
		return flagTime;
	}

	public void setFlagTime(String flagTime) {
		this.flagTime = flagTime;
	}

	public String getBailPrice() {
		return bailPrice;
	}

	public void setBailPrice(String bailPrice) {
		this.bailPrice = bailPrice;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(String auditTime) {
		this.auditTime = auditTime;
	}

	public String getOpenTimePre() {
		return openTimePre;
	}

	public void setOpenTimePre(String openTimePre) {
		this.openTimePre = openTimePre;
	}

	public String getFirstBidTimePre() {
		return firstBidTimePre;
	}

	public void setFirstBidTimePre(String firstBidTimePre) {
		this.firstBidTimePre = firstBidTimePre;
	}

	public String getCloseTimePre() {
		return closeTimePre;
	}

	public void setCloseTimePre(String closeTimePre) {
		this.closeTimePre = closeTimePre;
	}

	public String getLimitTime() {
		return limitTime;
	}

	public void setLimitTime(String limitTime) {
		this.limitTime = limitTime;
	}

	public String getDelayControl() {
		return delayControl;
	}

	public void setDelayControl(String delayControl) {
		this.delayControl = delayControl;
	}

	public String getDelayUnit() {
		return delayUnit;
	}

	public void setDelayUnit(String delayUnit) {
		this.delayUnit = delayUnit;
	}

	public String getDelayPeriod() {
		return delayPeriod;
	}

	public void setDelayPeriod(String delayPeriod) {
		this.delayPeriod = delayPeriod;
	}

	public String getDelayDeadTime() {
		return delayDeadTime;
	}

	public void setDelayDeadTime(String delayDeadTime) {
		this.delayDeadTime = delayDeadTime;
	}

	public String getDelayPeriodMax() {
		return delayPeriodMax;
	}

	public void setDelayPeriodMax(String delayPeriodMax) {
		this.delayPeriodMax = delayPeriodMax;
	}

	public String getIfFee() {
		return ifFee;
	}

	public void setIfFee(String ifFee) {
		this.ifFee = ifFee;
	}

	public String getAllowFirstValue() {
		return allowFirstValue;
	}

	public void setAllowFirstValue(String allowFirstValue) {
		this.allowFirstValue = allowFirstValue;
	}

	public String getAllowRepeat() {
		return allowRepeat;
	}

	public void setAllowRepeat(String allowRepeat) {
		this.allowRepeat = allowRepeat;
	}

	public String getAllowEndPrio() {
		return allowEndPrio;
	}

	public void setAllowEndPrio(String allowEndPrio) {
		this.allowEndPrio = allowEndPrio;
	}

	public String getAllowHallPrio() {
		return allowHallPrio;
	}

	public void setAllowHallPrio(String allowHallPrio) {
		this.allowHallPrio = allowHallPrio;
	}

	public String getAllowPrioTime() {
		return allowPrioTime;
	}

	public void setAllowPrioTime(String allowPrioTime) {
		this.allowPrioTime = allowPrioTime;
	}

	public String getAllowAdd() {
		return allowAdd;
	}

	public void setAllowAdd(String allowAdd) {
		this.allowAdd = allowAdd;
	}

	public String getAllowAddTime() {
		return allowAddTime;
	}

	public void setAllowAddTime(String allowAddTime) {
		this.allowAddTime = allowAddTime;
	}

	public String getPrioControl() {
		return prioControl;
	}

	public void setPrioControl(String prioControl) {
		this.prioControl = prioControl;
	}

	public String getEndPrioDays() {
		return endPrioDays;
	}

	public void setEndPrioDays(String endPrioDays) {
		this.endPrioDays = endPrioDays;
	}

	public String getBidInterval() {
		return bidInterval;
	}

	public void setBidInterval(String bidInterval) {
		this.bidInterval = bidInterval;
	}

	public String getBidIntervalLimit() {
		return bidIntervalLimit;
	}

	public void setBidIntervalLimit(String bidIntervalLimit) {
		this.bidIntervalLimit = bidIntervalLimit;
	}

	public String getIsPreview() {
		return isPreview;
	}

	public void setIsPreview(String isPreview) {
		this.isPreview = isPreview;
	}

	public String getItemSource() {
		return itemSource;
	}

	public void setItemSource(String itemSource) {
		this.itemSource = itemSource;
	}

	public String getItemBrand() {
		return itemBrand;
	}

	public void setItemBrand(String itemBrand) {
		this.itemBrand = itemBrand;
	}

	public String getItemArea() {
		return itemArea;
	}

	public void setItemArea(String itemArea) {
		this.itemArea = itemArea;
	}

	public String getPackId() {
		return packId;
	}

	public void setPackId(String packId) {
		this.packId = packId;
	}

	public String getProId() {
		return proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getPicUrlSmall() {
		return picUrlSmall;
	}

	public void setPicUrlSmall(String picUrlSmall) {
		this.picUrlSmall = picUrlSmall;
	}

	public String getOrgEname() {
		return orgEname;
	}

	public void setOrgEname(String orgEname) {
		this.orgEname = orgEname;
	}

	public String getOrgCname() {
		return orgCname;
	}

	public void setOrgCname(String orgCname) {
		this.orgCname = orgCname;
	}

	public String getFallDecrement() {
		return fallDecrement;
	}

	public void setFallDecrement(String fallDecrement) {
		this.fallDecrement = fallDecrement;
	}

	public String getFallLimitTime() {
		return fallLimitTime;
	}

	public void setFallLimitTime(String fallLimitTime) {
		this.fallLimitTime = fallLimitTime;
	}

	public String getFallLowerstPrice() {
		return fallLowerstPrice;
	}

	public void setFallLowerstPrice(String fallLowerstPrice) {
		this.fallLowerstPrice = fallLowerstPrice;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getNetBidKind() {
		return netBidKind;
	}

	public void setNetBidKind(String netBidKind) {
		this.netBidKind = netBidKind;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getSpare1() {
		return spare1;
	}

	public void setSpare1(String spare1) {
		this.spare1 = spare1;
	}

	public String getSpare2() {
		return spare2;
	}

	public void setSpare2(String spare2) {
		this.spare2 = spare2;
	}

	public String getSpare3() {
		return spare3;
	}

	public void setSpare3(String spare3) {
		this.spare3 = spare3;
	}

	public String getSpare4() {
		return spare4;
	}

	public void setSpare4(String spare4) {
		this.spare4 = spare4;
	}

	public String getSpare5() {
		return spare5;
	}

	public void setSpare5(String spare5) {
		this.spare5 = spare5;
	}

	public String getIfRight() {
		return ifRight;
	}

	public void setIfRight(String ifRight) {
		this.ifRight = ifRight;
	}

}
